﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="重要物资检验情况.aspx.cs" Inherits="syc.Sale.Report.重要物资检验情况" %>

<head runat="server">
    <title></title>
    <script type="text/javascript" language="javascript" src="/common.js"></script>
    <script src="../jquery.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript" >

        //PAGE_LOAD()
        $(document).ready(function() {
            //截止日期默认取当天
            $('#Date1').change(function() {
                if ($('#Date2').val() == "") {
                    $('#Date2').val($('#Date1').val());
                }
            });
            //清空两个日期框
            $('#clear').click(function() {
                $('#Date1').val("");
                $('#Date2').val("");
            });
        });						
    </script>
</head>
<body>
    <script type="text/javascript" language="javascript" src="/common.js"></script>
    
   <form id="form1" runat="server">  
      <div id="wintop" class="wintop"><span lang="zh-cn">重要物资检验情况</span></div>
        <asp:Panel ID="Panel1" runat="server" CssClass="panel" Height="36px" >
       <table>
        <tr id="row2" runat="server">
        <td>         
        <span style="width:220px;text-align:right;">
            到货起始日期：<asp:TextBox ID="Date1" runat="server" CssClass="intxt1" Width="120px" AutoPostBack="true"></asp:TextBox><img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('Date1').value, document.getElementById('Date1'));" />
        </span>
        </td>
        
        <td>
        <span style="width:220px;text-align:right;">
            到货截止日期：<asp:TextBox ID="Date2" runat="server" CssClass="intxt1" Width="120px" AutoPostBack="true"></asp:TextBox><img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('Date2').value, document.getElementById('Date2'));" />
        </span>
        <input type="button" class="smallbutton" id="clear" value="清空日期"/>
        </td>     
       
        <td>&nbsp;&nbsp;&nbsp;<asp:Button ID="Button_Query"
            runat="server" Text="查看报表" CssClass="button" UseSubmitBehavior="true" onclick="Button_Query_Click" 
             />            </td>
        <td><asp:Button ID="Button1" runat="server" class="button" onclick="Button1_Click" Text="导 出"  /></td>
        </tr>
        </table>      
      </asp:Panel>
        <asp:Panel ID="Panel2" runat="server" CssClass="panel2">
        <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt" Visible="True"></asp:Label>
        </asp:Panel> 
 <div align="center" id="report">    
        <h2>
        重要物资检验情况 
        </h2>     
      <table>
        <tr>
         <td width="450px">&nbsp;</td><td width="280px"></td><td width="100px">
            &nbsp;</td>
        </tr>
      </table>     
      <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"  
        DataSourceID="SqlDataSource1" style="text-align: center" BorderColor="Black" 
                BorderStyle="Solid" BorderWidth="2px" Width="760px">  
        <HeaderStyle Height="40px" />       
        <RowStyle Height="30px" />
       
        <Columns>
                       
            <asp:BoundField DataField="名称" HeaderText="名称" SortExpression="名称"  
                ItemStyle-Width="101px">        
            
<ItemStyle Width="101px"></ItemStyle>
            </asp:BoundField>
            
            <asp:BoundField DataField="品名" HeaderText="品名" SortExpression="品名" 
                ItemStyle-Width="68px">
                     
<ItemStyle Width="68px"></ItemStyle>
            </asp:BoundField>
                     
            <asp:BoundField DataField="规格" HeaderText="规格" SortExpression="规格" 
                ItemStyle-Width="68px">
            
<ItemStyle Width="68px"></ItemStyle>
            </asp:BoundField>
            
            <asp:BoundField DataField="到货日期" HeaderText="到货日期" ItemStyle-Width="70px" DataFormatString="{0:d}" 
                SortExpression="到货日期" >                
<ItemStyle Width="70px"></ItemStyle>
            </asp:BoundField>
             <asp:BoundField  DataField="送检日期" HeaderText="送检日期" ItemStyle-Width="70px" DataFormatString="{0:d}" 
                SortExpression="送检日期" >
<ItemStyle Width="70px"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField  DataField="检定日期" HeaderText="检定日期" ItemStyle-Width="70px" DataFormatString="{0:d}" 
                SortExpression="检定日期" >
<ItemStyle Width="70px"></ItemStyle>
            </asp:BoundField>
             <asp:BoundField DataField="数量" HeaderText="数量" ItemStyle-Width="70px"
                SortExpression="数量" >                
<ItemStyle Width="70px"></ItemStyle>
            </asp:BoundField>
             <asp:BoundField  DataField="合格量" HeaderText="合格量" ItemStyle-Width="70px"
                SortExpression="合格量" > 
<ItemStyle Width="70px"></ItemStyle>
            </asp:BoundField>
             <asp:BoundField DataField="不合格量" HeaderText="不合格量" ItemStyle-Width="70px"
                SortExpression="不合格量" >               
<ItemStyle Width="70px"></ItemStyle>
            </asp:BoundField>          
             <asp:BoundField DataField="合格率" HeaderText="合格率(%)" ItemStyle-Width="70px" DataFormatString="{0:0.0}"
                SortExpression="合格率" >                
<ItemStyle Width="70px"></ItemStyle>
            </asp:BoundField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>"         
>
    </asp:SqlDataSource>
    </div>
    </form>
<script>parent.hidesubmenu(true);</script>
</body>
</html>
